<template>
    <div>
        <h1>菜单页面</h1>
        <ul>
            <router-link to="/game" custom v-slot="{ navigate }">
                <li @click="navigate">游戏页</li>
            </router-link>
            <router-link to="/movie" custom v-slot="{ navigate }">
                <li @click="navigate">电影页</li>
            </router-link>
        </ul>
        <div>
            <RouterView />
        </div>
    </div>
</template>

<script setup>

</script>

<style lang="scss" scoped>
li {
    list-style-type: none;
    cursor: pointer;
}
</style>